<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/catalogue">
	<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
		<body style="font-family: calibri; font-size: 10pt;">		
			Your search results...
			<br/><br/>
			<table cellspacing="10">
					<tr>
						<td style="font-style: italic;">Title</td>
						<td style="font-style: italic;">Author</td>
						<td style="font-style: italic;">Year</td>
						<td style="font-style: italic;">ISBN</td>
						<td style="font-style: italic;">Rating</td>
					</tr>
					<tr>
						<td colspan="5"><hr/></td>
					</tr>
				<xsl:for-each select="./book">
					<tr>
						<td><xsl:value-of select="title"/></td>
						<td><xsl:value-of select="author"/></td>
						<td><xsl:value-of select="year"/></td>
						<td><xsl:value-of select="isbn"/></td>
						<td><xsl:value-of select="rating"/></td>
					</tr>
					<tr>
						<td></td>
						<td colspan="4">
							<table cellspacing="10">
								<tr>
									<td style="font-style: italic;">Comment</td>
									<td style="font-style: italic;">Rating</td>
									<td style="font-style: italic;">Author</td>
								</tr>
								<xsl:for-each select="./feedback">
								<tr>
									<td><xsl:value-of select="comment"/></td>
									<td><xsl:value-of select="rating"/></td>
									<td><xsl:value-of select="author"/></td>
								</tr>
								</xsl:for-each>
							</table>
						</td>
					</tr>
					<tr>
						<td colspan="5">
							<!-- This form needs to send the current book obj as XML doc and add
									in the feedback value into the XML doc -->
							<form name="form1" method="post" action="urlOnServerForSubmittingFeedback">
								<input type="hidden" name="bookId" value="theBookIdHereMaybe"/>
								<textarea cols="32" rows="6" name="feedback"/>
								<input type="Submit" name="submit1" value="Post Feedback"/>
							</form>
						</td>
					</tr>
					<tr>
						<td colspan="5"><hr/></td>
					</tr>
				</xsl:for-each>
			</table>
		</body>
	</html>
	</xsl:template>
</xsl:stylesheet>

